package com.springBootStudy.mybatis.service;


//mybatis coding 步骤在pojo 注释里面

import com.springBootStudy.mybatis.mapper.MybatisUserMapper;
import com.springBootStudy.mybatis.pojo.MybatisUser;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.List;

public class MybatisService {

    @Resource
    private MybatisUserMapper mybatisUserMapper;

    public List<MybatisUser> selectVtermDefaultInfo(int id){
        List<MybatisUser> mybatisUsers = mybatisUserMapper.selectMybatisUser(id);
        return mybatisUsers;
    }
}
